Feature: Add Subfolder Strategy for Automatic Uploads#56
Open
PhilippThaler wants to merge 5 commits intoopencloud-eu:mainfrom
Open
Feature: Add Subfolder Strategy for Automatic Uploads#56PhilippThaler wants to merge 5 commits intoopencloud-eu:mainfrom
PhilippThaler wants to merge 5 commits intoopencloud-eu:mainfrom
Conversation
426682e to
58a9e8a
Compare
58a9e8a to
fd65b96
Compare
|
Heavily waiting for that one :-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Feature: Add Subfolder Strategy for Automatic Uploads
Based on #46
What does this PR do?
This PR introduces a new feature that allows users to automatically organize their camera uploads into subfolders based on the date the picture or video was taken. Users can choose to create subfolders by:
/2025/)/2025/11/)/2025/11/09/)This helps users keep their cloud storage tidy and makes it easier to browse through photos from specific dates.
How is this implemented?
UseSubfoldersBehaviourEnum:FolderBackUpConfiguration.ktto represent the different subfolder options (NONE,YEAR,YEAR_MONTH,YEAR_MONTH_DAY).AutomaticUploadsWorker:buildUploadPathto construct the remote path dynamically based on the selectedUseSubfoldersBehaviourand the file's last modified date.FolderBackUpEntityand the corresponding database migration (MIGRATION_43_44) were updated to include the newuseSubfoldersBehaviourfield.How to test this?
Settings>Automatic Uploadsfor either pictures or videos.Screenshots